import json


class ReturnObj:
    accnum = None
    name = None;
    certiNum = None;
    oldBasenum = None;
    newBasenum = None;

    def __str__(self):
        return f"accnum:{self.accnum}, name:{self.name}, certiNum:{self.certiNum}, oldBasenum:{self.oldBasenum}, newBasenum:{self.newBasenum}"


# 调用数据库，查询该单位下可以进行缴存基数调整的人员，组装请求参数
file_data = open("D:/缴存基数变更检查.txt", 'r', encoding='UTF-8')
data_list = []

for data in file_data:
    data = data.strip()
    datas = data.split(',')
    data_dict = {}
    data_dict["accnum"] = datas[0]
    data_dict["name"] = datas[2]

    data_dict["certiNum"] = datas[1]
    data_list.append(data_dict);

print('{"list":[')
for data in data_list:
    print(f"{data},")
print(']}')

